<!--燃气补助汽车列表-->
<template>
<div class="public-common">
    <div class="public-title">请选择查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>

            <el-col :span="6">
                <el-form-item label="名称">
                    <el-input size="small" v-model="form.ming"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                 <el-button type="primary" style=" margin-left: 10px;">搜索</el-button>
                 <el-button type="primary" style=" margin-left: 10px;">添加驾驶员</el-button>
            </el-col>
            <el-col :span="5">
                <el-form-item label="油补批次">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl1">
                      <el-option v-for="(v,i) in item1" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="9">
                 <el-button type="primary" style=" margin-left: 10px;">获取银行卡数据</el-button>
                 <el-button type="primary" style=" margin-left: 10px;">打印花名册</el-button>
                 <el-button type="primary" style=" margin-left: 10px;">打印确认单</el-button>
                 <el-button type="primary" style=" margin-left: 10px;">驾驶员数据提交</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">数据列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车牌号码" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="经营权到期日期" prop="a2">
            </el-table-column>
            <el-table-column
                label="销户日期" prop="a3">
            </el-table-column>
            <el-table-column
                label="总班次" prop="a4">
            </el-table-column>
            <el-table-column
                label="驾驶员信息(姓名,班次,金额,卡号)" prop="a5">
            </el-table-column>
            <el-table-column
                label="补助金额(合计)" prop="a6">
            </el-table-column>
            <el-table-column
                label="数据批次" prop="a7">
            </el-table-column>
            <el-table-column
                label="数据状态" prop="a8">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  ming:'',
                  carzl1:''
              },
              item1: [{
                  text: '第一批',
                  value: '0'
                },
                {
                  text: '第二批',
                  value: '1'
                },
                {
                  text: '第三批',
                  value: '2'
                },
                {
                  text: '第四批',
                  value: '3'
                },
                {
                  text: '第五批',
                  value: '4'
                },
                {
                  text: '第六批',
                  value: '5'
                },
              ],
              tabledata:[
                {
                    a1: '陕A23121',
                    a2: '2020-10-10',
                    a3: '2020-10-10',
                    a4: '30',
                    a5:'丁建国，20,￥30，kh1238381',
                    a6: '￥20',
                    a7: '30',
                    a8: '正常',
                },
                {
                    a1: '陕A45231',
                    a2: '2021-11-10',
                    a3: '2021-11-10',
                    a4: '50',
                    a5:'丁海，40,￥50，kh1231233',
                    a6: '￥40',
                    a7: '50',
                    a8: '正常',
                },
                {
                    a1: '陕A54223',
                    a2: '2022-10-10',
                    a3: '2022-10-10',
                    a4: '70',
                    a5:'刘日能，70,￥80，kh1268598',
                    a6: '￥70',
                    a7: '80',
                    a8: '正常',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },

        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 70px !important;}
  .el-form-item .el-form-item__content{ margin-left: 70px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
